package extendsTest;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;

/**
 * @program: javase
 * @description:
 * @author: luolidong
 * @create: 2021-07-06 19:04
 * @version: 1.0
 */
public class B extends A {
    @Override
    public LinkedList<Integer> m1() {
        return new LinkedList<>();
    }

    @Override
    public RuntimeException m2() {
        return new RuntimeException("m2子类");
    }

    public static void main(String[] args) {
        RuntimeException runtimeException = new B().m2();
        System.out.println("runtimeException.getMessage() = " + runtimeException.getMessage());
    }
}
